#include <windows.h>


#define		LUNAR_WIN_TITLE			1<<0
#define		LUNAR_WIN_MAX			1<<1
#define		LUNAR_WIN_MIN			1<<2
#define		LUNAR_WIN_RESIZABLE	1<<3

#define		WIN_DONE		1
#define		WIN_ERROR		-1

class MyWin32 
{
public: 
	MyWin32();
	~MyWin32();

	HWND  g_hWnd;

	int				Create(unsigned int style, int width, int height, char* title);
	int				ProcessMsg(int apiOpt);
	HWND		GetMyWinHandle();
	bool			IsKeyDown(unsigned long key);


protected:
	char*			Title;
	int				Width;
	int				Height;
	ULONG		Style;
	HWND		hWnd;
	HINSTANCE	hInstance;
};
